<style lang="less">
  .itemApp1App1{
    height: 32px;
    line-height: 32px;
  }
  .row-left{
    text-align: center;
  }
  .title-top{
    margin-bottom:10px;
    color: #1C86EE;
    font-size: 1rem;
    border-bottom: 1px solid orangered;
    font-size: 20px;
    color: coral;
  }
  .info-middleApp{
    height: 410px;
    background-color: #F8F8FF;
    padding-left: 70px;
    padding-right: 70px;
  }
  .ivu-steps-item {
    display: initial;
    position: relative;
    vertical-align: initial;
  }
  .step-item {
    float: left;
    margin-left: 0;
  }
  .head-img {
    height: 120px;
    width:100px;
    position:absolute;
    right:1px;
    top:10px;
  }
  .red-name{
    color: red
  }
</style>
<template>
  <div style="background-color:white">
    <div style="background-color:white">
      <Row class="title-top">
        <Col span="4" style="text-align: left;width:22%">城市低保救助申请登记</Col>
      </Row>
    </div>
    <div style="height:30px;">
      <Steps :current="0" style="margin-bottom:10px" size="small">
        <div @click="nextStep('0')" class="step-item">
          <Step title="家庭信息" content=""></Step>
        </div>
        <div @click="nextStep('1')" class="step-item">
          <Step title="家庭成员" content=""></Step>
        </div>
        <div @click="nextStep('2')" class="step-item">
          <Step title="基础收入" content=""></Step>
        </div>
        <div @click="nextStep('3')" class="step-item">
          <Step title="基础支出" content=""></Step>
        </div>
        <div @click="nextStep('4')" class="step-item">
          <Step title="赡抚扶养" content=""></Step>
        </div>
        <div @click="nextStep('5')" class="step-item">
          <Step title="基础财产" content=""></Step>
        </div>
        <div @click="nextStep('6')" class="step-item">
          <Step title="财产房产" content=""></Step>
        </div>
        <div @click="nextStep('7')" class="step-item">
          <Step title="工作单位" content=""></Step>
        </div>
        <div @click="nextStep('8')" class="step-item">
          <Step title="教育情况" content=""></Step>
        </div>
        <div @click="nextStep('9')" class="step-item">
          <Step title="家庭附件" content=""></Step>
        </div>
        <div @click="nextStep('10')" class="step-item">
          <Step title="提交信息" content=""></Step>
        </div>
      </Steps>
    </div>
    <div class="info-middleApp">
      <div style="width:55%;float:left">
        <Form :label-width="0" style="margin-top:10px">
          <FormItem>
            <Row class="itemApp1">
              <Col span="5" style="text-align: center" class="row-left">救助类型</Col>
              <Col span="7">
                <Select v-model="data.ssca0002" disabled>
                  <Option value="100">城市低保</Option>
                </Select>
              </Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="5" style="text-align: center" class="row-left red-name">申请人证件号码</Col>
              <Col span="7">
                <Input v-model="data.azcp0001" placeholder="" :disabled="see"></Input>
              </Col>
              <Col span="5" style="text-align: center" class="row-left red-name">申请人证件类型</Col>
              <Col span="6">
                <Select v-model="data.azcp0002" :disabled="see">
                  <Option :value="obj.key" v-for="obj in data1" v-bind:key="obj.key">{{obj.value}}</Option>
                </Select>
              </Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="5" style="text-align: center" class="row-left red-name">户籍特别行政区</Col>
              <Col span="6">
                <Select v-model="select1" :disabled="see">
                  <Option :value="obj.id" v-for="obj in data2" v-bind:key="obj.id">{{obj.fullname}}</Option>
                </Select>
              </Col>
              <Col span="6">
                <Select v-model="select2" :disabled="see">
                  <Option :value="obj.id" v-for="obj in data3" v-bind:key="obj.key">{{obj.fullname}}</Option>
                </Select>
              </Col>
              <Col span="6">
                <Select v-model="select3" :disabled="see">
                  <Option :value="obj.code" v-for="obj in data4" v-bind:key="obj.key">{{obj.fullname}}</Option>
                </Select>
              </Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="5" style="text-align: center" class="row-left red-name">户籍地详细地址</Col>
              <Col span="18">
                <Input v-model="data.azdf0500" placeholder="" :disabled="see"></Input>
              </Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="5" style="text-align: center" class="row-left red-name">常住地行政区划</Col>
              <Col span="6">
                <Select v-model="select4" :disabled="see">
                  <Option :value="obj.id" v-for="obj in data2" v-bind:key="obj.key">{{obj.fullname}}</Option>
                </Select>
              </Col>
              <Col span="6">
                <Select v-model="select5" :disabled="see">
                  <Option :value="obj.id" v-for="obj in data5" v-bind:key="obj.key">{{obj.fullname}}</Option>
                </Select>
              </Col>
              <Col span="6">
                <Select v-model="select6" :disabled="see">
                  <Option :value="obj.code" v-for="obj in data6" v-bind:key="obj.key">{{obj.fullname}}</Option>
                </Select>
              </Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="5" style="text-align: center" class="row-left red-name">常住地详细地址</Col>
              <Col span="18">
                <Input v-model="data.azdf0008" placeholder="" :disabled="see"></Input>
              </Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="5" style="text-align: center" class="row-left red-name">所属地行政区划</Col>
              <Col span="6">
                <Select v-model="select7" :disabled="see">
                  <Option :value="obj.id" v-for="obj in data2" v-bind:key="obj.key">{{obj.fullname}}</Option>
                </Select>
              </Col>
              <Col span="6">
                <Select v-model="select8" :disabled="see">
                  <Option :value="obj.id" v-for="obj in data7" v-bind:key="obj.key">{{obj.fullname}}</Option>
                </Select>
              </Col>
              <Col span="6">
                <Select v-model="select9" :disabled="see">
                  <Option :value="obj.code" v-for="obj in data8" v-bind:key="obj.key">{{obj.fullname}}</Option>
                </Select>
              </Col>
            </Row>
          </FormItem>
        </Form>
      </div>
      <div style="width:45%;float:left;position:relative;">
        <Form :label-width="0" style="margin-top:10px">
          <FormItem>
            <Row class="itemApp1">
              <Col span="6" style="text-align: center" class="row-left red-name">申请人姓名</Col>
              <Col span="8">
                <Input v-model="data.azcp0003" placeholder="" :disabled="see"></Input>
              </Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="6" style="text-align: center" class="row-left">户籍地邮政编码</Col>
              <Col span="8">
                <Input v-model="data.azdf0009" placeholder="" :disabled="see"></Input>
              </Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="6" style="text-align: center" class="row-left">宅电号码</Col>
              <Col span="8">
                <Input v-model="data.azdf0010" placeholder="" :disabled="see"></Input>
              </Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="6" style="text-align: center" class="row-left">常住地邮政编码</Col>
              <Col span="8">
                <Input v-model="data.azdf0502" placeholder="" :disabled="see"></Input>
              </Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="6" style="text-align: center" class="row-left">手机号码</Col>
              <Col span="8">
                <Input v-model="data.azdf0011" placeholder="" :disabled="see"></Input>
              </Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="24" style="text-align: center" class="row-left">&nbsp;</Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="24">
                <span style="color:red">*该选项为受理社区，选择后使用该社区账号登录低保系统进行审核！！！</span>
              </Col>
            </Row>
          </FormItem>
        </Form>
        <img :src="nophoto" alt="..." class="head-img">
      </div>
      <div style="height:40px;line-height:40px;float:left;margin-top:10px;margin-left:40%">
        <Button type="info" @click="save()" :disabled="order_state == '1' || order_state == '2' || order_state == '3'" :loading="loading" style="margin-right:5px">下一步></Button>
        <Button type="info" @click="nextPage()" v-if="order_state == '1' || order_state == '2' || order_state == '3'">下一页></Button>
      </div>
    </div>
  </div>
</template>
<script>
import { getAppraising, getAdministrativePlanning, createPostLogin, getIdcard, getBack, userinfo } from '@/api/eventlist'
import nophoto from '@/assets/images/nophoto.jpeg'
export default {
  data () {
    return {
      loading: false,
      id_url: '',
      see: this.$route.params.see || false,
      operation_state: '',
      code: this.$route.params.code || '',
      itemid: this.$route.params.itemid || '',
      url: '',
      str: this.$route.params.serialNumber || '',
      idcardNumber: this.$route.params.idcardNumber || this.$route.params.cardno,
      errorTitle: '错误',
      select1: '',
      select2: '',
      select3: '',
      select4: '',
      select5: '',
      select6: '',
      select7: '',
      select8: '',
      select9: '',
      temp: {
        address: '',
        address1: '',
        address2: ''
      },
      data: {
        azcp0002: '',
        azcp0003: this.$route.params.name,
        azdf0006: '',
        ssca0002: '100',
        azcp0001: this.$route.params.idcardNumber || this.$route.params.cardno,
        ss11001Id: this.$route.params.ss11001Id || '',
        ss11002Id: this.$route.params.ss11002Id || '',
        ss17001Id: this.$route.params.ss17001Id || '',
        ss17002Id: this.$route.params.ss17002Id || ''
      },
      data1: [],
      data2: [],
      data3: [],
      data4: [],
      data5: [],
      data6: [],
      data7: [],
      data8: [],
      nophoto,
      order_state: this.$route.params.order_state
    }
  },
  methods: {
    nextStep (step) {
      this.$Message.warning('请点击下一步进行家庭维护页面')
    },
    nextPage () {
      var param = {}
      if (this.itemid === '11210101000000MZJD5212000330000') {
        param = {
          ss11001Id: this.data.ss11001Id,
          ss11002Id: this.data.ss11002Id,
          idcardNumber: this.idcardNumber,
          serialNumber: this.str,
          code: this.code,
          see: this.see,
          itemid: this.itemid,
          order_state: this.order_state
        }
      } else if (this.itemid === '11210101000000MZJD5212000351000') {
        param = {
          ss17001Id: this.data.ss17001Id,
          ss17002Id: this.data.ss17002Id,
          idcardNumber: this.idcardNumber,
          serialNumber: this.str,
          code: this.code,
          see: this.see,
          itemid: this.itemid,
          order_state: this.order_state
        }
      }
      this.$router.push({
        name: 'subsistenceapplication1',
        params: param
      })
    },
    save: function () {
      this.data.azcp0001 = this.idcardNumber
      this.data.azcp0519 = ''
      // this.data.ssca0002 = '100'
      console.log(this.data)
      var param1 = {
        'request_map': this.data,
        'headers_map': {
          'serialNumber': this.str,
          'idcardNumber': this.idcardNumber
        },
        'url': this.url,
        'code': this.code,
        'request_step': '1',
        'operation_state': this.operation_state
      }
      if (this.data.azcp0001 === '' || this.data.azcp0001 === undefined) {
        const content = '<p>请输入申请人证件号码</p>'
        this.$Modal.error({
          title: this.errorTitle,
          content: content
        })
        return
      }
      if (this.data.azcp0002 === '' || this.data.azcp0002 === undefined) {
        const content = '<p>请选择申请人证件类型</p>'
        this.$Modal.error({
          title: this.errorTitle,
          content: content
        })
        return
      }
      if (this.data.azdf0006 === '' || this.data.azdf0006 === undefined) {
        const content = '<p>请选择户籍特别行政区</p>'
        this.$Modal.error({
          title: this.errorTitle,
          content: content
        })
        return
      }
      if (this.data.azdf0500 === '' || this.data.azdf0500 === undefined) {
        const content = '<p>请填写户籍地详细地址</p>'
        this.$Modal.error({
          title: this.errorTitle,
          content: content
        })
        return
      }
      if (this.data.azdf0501 === '' || this.data.azdf0501 === undefined) {
        const content = '<p>请选择常住地行政区划</p>'
        this.$Modal.error({
          title: this.errorTitle,
          content: content
        })
        return
      }
      if (this.data.azdf0008 === '' || this.data.azdf0008 === undefined) {
        const content = '<p>请填写常住地详细地址</p>'
        this.$Modal.error({
          title: this.errorTitle,
          content: content
        })
        return
      }
      if (this.data.azdf0007 === '' || this.data.azdf0007 === undefined) {
        const content = '<p>请选择所属地行政区划</p>'
        this.$Modal.error({
          title: this.errorTitle,
          content: content
        })
        return
      }
      if (this.data.azcp0003 === '' || this.data.azcp0003 === undefined) {
        const content = '<p>请填写申请人姓名</p>'
        this.$Modal.error({
          title: this.errorTitle,
          content: content
        })
        return
      }
      this.loading = true
      createPostLogin(param1).then(res => {
        if (res.data.errcode === 0 && res.data.data.rescode === '0000') {
          this.$Message.success(res.data.data.memo)
          var param = {}
          if (this.itemid === '11210101000000MZJD5212000330000') {
            param = {
              ss11001Id: this.data.ss11001Id || res.data.data.data.ss11001Id,
              ss11002Id: this.data.ss11002Id || res.data.data.data.ss11002Id,
              idcardNumber: this.idcardNumber,
              serialNumber: this.str,
              code: this.code || res.data.data.orderCode,
              see: this.see,
              itemid: this.itemid
            }
          } else if (this.itemid === '11210101000000MZJD5212000351000') {
            param = {
              ss17001Id: this.data.ss17001Id || res.data.data.data.ss17001Id,
              ss17002Id: this.data.ss17002Id || res.data.data.data.ss17002Id,
              idcardNumber: this.idcardNumber,
              serialNumber: this.str,
              code: this.code || res.data.data.orderCode,
              see: this.see,
              itemid: this.itemid
            }
          }
          this.$router.push({
            name: 'subsistenceapplication1',
            params: param
          })
        } else {
          const content = '<p>' + res.data.data.memo + '</p>'
          this.$Modal.error({
            title: this.errorTitle,
            content: content,
            onOk: () => {
              this.$router.push({
                name: 'mainv3',
                params: {
                  serialNumber: this.$route.params.serialNumber,
                  idcardNumber: this.$route.params.idcardNumber,
                  ss11001Id: this.$route.params.ss11001Id,
                  ss11002Id: this.$route.params.ss11002Id
                }
              })
            }
          })
        }
      })
    },
    getuserinfo (cardno) {
      userinfo(cardno).then(res => {
        if (res.data.data) {
          // this.data.azcp0519 = res.data.data.photo
          this.nophoto = res.data.data.photo
        } else {
          this.$Message.error('查不到人员信息')
        }
      })
    },
    getBase64Image (url, ref) {
      var that = this
      var image = new Image()
      image.src = url + '?v=' + Math.random() // 处理缓存
      image.crossOrigin = '*' // 支持跨域图片
      image.onload = function () {
        var base64 = that.drawBase64Image(image)
        that.$refs[ref].src = base64
        console.log(base64, 'base64')
      }
    },
    drawBase64Image (img) {
      var canvas = document.createElement('canvas')
      canvas.width = img.width
      canvas.height = img.height
      var ctx = canvas.getContext('2d')
      ctx.drawImage(img, 0, 0, img.width, img.height)
      var dataURL = canvas.toDataURL('image/png')
      return dataURL
    }
  },
  watch: {
    select1 (val) {
      var param1 = {
        'idcardNumber': this.idcardNumber,
        'pid': val,
        'serialNumber': this.str
      }
      // 获取街道信息
      getAdministrativePlanning(param1).then(res => {
        this.data3 = res.data.data.data.divisions
        console.log(res, '调用街道接口返回来的数据')
        console.log(this.data3)
      })
    },
    select2 (val) {
      var param1 = {
        'idcardNumber': this.idcardNumber,
        'pid': val,
        'serialNumber': this.str
      }
      // 社区信息
      getAdministrativePlanning(param1).then(res => {
        this.data4 = res.data.data.data.divisions
        console.log(res, '调用接口返回来的数据')
        console.log(this.data4)
      })
    },
    select3 (val) {
      this.data.azdf0006 = val
    },
    select4 (val) {
      var param1 = {
        'idcardNumber': this.idcardNumber,
        'pid': val,
        'serialNumber': this.str
      }
      getAdministrativePlanning(param1).then(res => {
        this.data5 = res.data.data.data.divisions
        console.log(res, '调用接口返回来的数据')
        console.log(this.data5)
      })
    },
    select5 (val) {
      var param1 = {
        'idcardNumber': this.idcardNumber,
        'pid': val,
        'serialNumber': this.str
      }
      getAdministrativePlanning(param1).then(res => {
        this.data6 = res.data.data.data.divisions
        console.log(res, '调用接口返回来的数据')
        console.log(this.data6)
      })
    },
    select6 (val) {
      this.data.azdf0501 = val
    },
    select7 (val) {
      var param1 = {
        'idcardNumber': this.idcardNumber,
        'pid': val,
        'serialNumber': this.str
      }
      getAdministrativePlanning(param1).then(res => {
        this.data7 = res.data.data.data.divisions
        console.log(res, '调用接口返回来的数据')
        console.log(this.data7)
      })
    },
    select8 (val) {
      var param1 = {
        'idcardNumber': this.idcardNumber,
        'pid': val,
        'serialNumber': this.str
      }
      getAdministrativePlanning(param1).then(res => {
        this.data8 = res.data.data.data.divisions
        console.log(res, '调用接口返回来的数据')
        console.log(this.data8)
      })
    },
    select9 (val) {
      this.data.azdf0007 = val
    }
  },
  mounted () {
    // this.getBase64Image('http://imgdl.tripln.top/webhdfs/v1//_3395427734.png?op=OPEN&namenoderpcaddress=hadoop01:9000&offset=0', 'coopCachetImg')
    this.order_state = this.$route.params.order_state
    // 判断是否有信息
    let timestamp = new Date().getTime().toString()
    var str1 = Math.ceil(Math.random() * 10)
    var str2 = Math.ceil(Math.random() * 10)
    this.str = str1 + timestamp + str2
    if (this.itemid === '11210101000000MZJD5212000330000') {
      this.id_url = 'dbsq/loadAssistanceInfo'
    } else if (this.itemid === '11210101000000MZJD5212000351000') {
      this.id_url = 'dbbg/loadAssistanceInfo'
    }
    var params = {
      'idcardNumber': this.idcardNumber,
      'serialNumber': this.str,
      'url': this.id_url
    }
    getIdcard(params).then(res => {
      if (res.data.errcode !== 0) {
        const content = '<p>' + res.data.errmsg + '</p>'
        this.$Modal.error({
          title: this.errorTitle,
          content: content,
          onOk: () => {
            this.$router.push({
              name: 'mainv3',
              params: {
                serialNumber: this.$route.params.serialNumber,
                idcardNumber: this.$route.params.idcardNumber,
                ss11001Id: this.$route.params.ss11001Id,
                ss11002Id: this.$route.params.ss11002Id
              }
            })
          }
        })
      } else if (res.data.data.rescode === '0000') {
        this.$Message.success({
          content: res.data.data.memo
        })
        if (this.itemid === '11210101000000MZJD5212000330000') { // 申请低保事项
          this.operation_state = 'create'
          if (res.data.data.code === '200' && res.data.data.rescode === '0000' && res.data.data.data !== undefined && res.data.data.data !== null && res.data.data.memo.indexOf('此人正在') === -1) {
            console.log('更新')
            this.url = 'dbsq/updateFamilyInfo'
            this.data = res.data.data.data
            this.data.azcp0001 = this.$route.params.idcardNumber || this.$route.params.cardno
            this.data.ssca0002 = this.data.ssca0002 || '100'
          } else if (res.data.data.code === '200' && res.data.data.rescode === '0000' && res.data.data.data !== undefined && res.data.data.data !== null && res.data.data.memo.indexOf('此人正在') !== -1) {
            console.log('@#@#@#@#')
            const content = '<p>' + res.data.data.memo + '</p>'
            this.$Modal.error({
              title: '提示',
              content: content,
              onOk: () => {
                this.$router.push({
                  name: 'mainv3'
                })
              }
            })
          } else if (res.data.data.code === '200' && res.data.data.rescode === '0007') {
            const content = '<p>' + res.data.data.memo + '</p>'
            this.$Modal.error({
              title: '提示',
              content: content,
              onOk: () => {
                console.log('chenggong')
                this.$router.push({
                  name: 'mainv3',
                  params: {
                    serialNumber: this.$route.params.serialNumber,
                    idcardNumber: this.$route.params.idcardNumber,
                    ss11001Id: this.$route.params.ss11001Id,
                    ss11002Id: this.$route.params.ss11002Id
                  }
                })
              }
            })
          } else {
            console.log('创建')
            this.url = 'dbsq/saveFamilyAndMemberInfo'
            this.operation_state = 'create'
            this.data.azcp0001 = this.$route.params.idcardNumber || this.$route.params.cardno
            this.data.ssca0002 = this.data.ssca0002 || '100'
          }
        } else if (this.itemid === '11210101000000MZJD5212000351000') { // 保障金额调整事项
          this.operation_state = 'update'
          this.url = 'dbbg/updateFamilyInfo'
          this.data = res.data.data.data
          this.data.azcp0001 = this.$route.params.idcardNumber || this.$route.params.cardno
          this.data.ssca0002 = this.data.ssca0002 || '100'
        }
        var param3 = {
          'idcardNumber': this.idcardNumber,
          'backCode': this.data.azdf0006,
          'serialNumber': this.str
        }
        getBack(param3).then(res => {
          var arr1 = res.data.data.data.xq
          for (var i = 0; i < arr1.length; i++) {
            if (arr1[i].selected === 'selected') {
              this.select1 = arr1[i].id
            }
          }
          var arr2 = res.data.data.data.xzjd
          for (var j = 0; j < arr2.length; j++) {
            if (arr2[j].selected === 'selected') {
              this.select2 = arr2[j].id
            }
          }
          var arr3 = res.data.data.data.sqc
          for (var k = 0; k < arr3.length; k++) {
            if (arr3[k].selected === 'selected') {
              this.select3 = arr3[k].code
            }
          }
        })
        var param4 = {
          'idcardNumber': this.idcardNumber,
          'backCode': this.data.azdf0501,
          'serialNumber': this.str
        }
        getBack(param4).then(res => {
          var arr1 = res.data.data.data.xq
          for (var i = 0; i < arr1.length; i++) {
            if (arr1[i].selected === 'selected') {
              this.select4 = arr1[i].id
            }
          }
          var arr2 = res.data.data.data.xzjd
          for (var j = 0; j < arr2.length; j++) {
            if (arr2[j].selected === 'selected') {
              this.select5 = arr2[j].id
            }
          }
          var arr3 = res.data.data.data.sqc
          for (var k = 0; k < arr3.length; k++) {
            if (arr3[k].selected === 'selected') {
              this.select6 = arr3[k].code
            }
          }
        })
        var param5 = {
          'idcardNumber': this.idcardNumber,
          'backCode': this.data.azdf0007,
          'serialNumber': this.str
        }
        getBack(param5).then(res => {
          var arr1 = res.data.data.data.xq
          for (var i = 0; i < arr1.length; i++) {
            if (arr1[i].selected === 'selected') {
              this.select7 = arr1[i].id
            }
          }
          var arr2 = res.data.data.data.xzjd
          for (var j = 0; j < arr2.length; j++) {
            if (arr2[j].selected === 'selected') {
              this.select8 = arr2[j].id
            }
          }
          var arr3 = res.data.data.data.sqc
          for (var k = 0; k < arr3.length; k++) {
            if (arr3[k].selected === 'selected') {
              this.select9 = arr3[k].code
            }
          }
        })
      } else {
        const content = '<p>' + res.data.data.memo + '</p>'
        this.$Modal.error({
          title: this.errorTitle,
          content: content,
          onOk: () => {
            this.$router.push({
              name: 'mainv3'
            })
          }
        })
      }
    })
    var param = {
      'idcardNumber': this.idcardNumber,
      'dictsCode': 'ss11001',
      'serialNumber': this.str
    }
    getAppraising(param).then(res => {
      this.data1 = res.data.data.data.CertificateTypeDict
      console.log(res, '调用接口返回来的数据')
      console.log(this.data1)
    })
    var param1 = {
      'idcardNumber': this.idcardNumber,
      'serialNumber': this.str
    }
    getAdministrativePlanning(param1).then(res => {
      this.data2 = res.data.data.data.divisions
      console.log(res, '调用接口返回来的数据')
      console.log(this.data2)
    })
    this.getuserinfo(this.idcardNumber)
  }
}
</script>
